package String;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 洪汤泽大帅哥
 * Date: 2024-11-10
 * Time: 11:25
 */
public class demo7 {
    public static void main(String[] args) {
        String str1 = "hello";
        int index = str1.indexOf('l');
        System.out.println(index);
    }
}
